package com.example.everying.model.dto.chat;

import com.example.everying.model.entity.user.UserEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class ConversationDto {
    @ApiModelProperty(value = "会话ID")
    private String conversationId;
    @ApiModelProperty(value = "用户")
    private UserEntity otherUser;       // 对方用户信息
    @ApiModelProperty(value = "最后一条消息内容")
    private String lastMessage;       // 最后一条消息内容
    @ApiModelProperty(value = "最后一条消息类型")
    private String lastMessageType;
    @ApiModelProperty(value = " 消息类型 0-文本 1-图片 2-视频")
    private String type;
    @ApiModelProperty(value = "最后消息时间")
    private LocalDateTime lastMessageTime; // 最后消息时间
    @ApiModelProperty(value = "未读消息数")
    private Integer unreadCount;      // 未读消息数
}
